<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    这是表单数据接受页面
</body>
<script>
    /**
    *TODO:获取到提交过来的表单数据
    **实例化URLSearchParams
    **打印每一个键值对
    **/
    let qs=(location.search.length>0?location.search.substring(1):"")
    let searchParams=new URLSearchParams(qs);
    for(let param of searchParams){
        console.log(param);
    }
</script>
</html>